import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import index from '@/components/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/index',
      name:'index',
      component: () => import('@/components/index')
    },
    {
      path: '/',
      name:'index',
      component: () => import('@/views/login/index')
    },
    {
      path: '/heard',
      name:'heard',
      component: () => import('@/layout/components/Navbar/index')
    }
  ]
})
